package demo3;

//Runnable 就是在描述一个"任务"
class MyRunnable implements Runnable {
    @Override
    public void run() {
        System.out.println("Runnable 就是在描述一个----任务");
    }
}

public class Test {
    public static void main(String[] args) {
        Thread t = new Thread(new MyRunnable());
        t.start();
    }
}
